package com.DHH.Entity.Capital;
import com.DHH.Entity.Base.BaseUser;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 实体类CapitalSecurityGivebackRecord
 * 数据表capital_tb_security_giveback_record
 * 押金退还申请记录表
 * 2017-8-3 12:33:07
 * @author Administrator
 *
 */
@Table(name = "capital_tb_security_giveback_record")
public class CapitalSecurityGivebackRecord  implements Serializable {

	//编号
	@Id
	@GeneratedValue(generator = "JDBC")
	private Integer id;
	//用户编号
	@NotNull(message = "用户编号不能为空")
	private Integer userId;
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8:00" )
	private Date createTime;
	//操作时间
	@NotNull(message = "操作时间不能为空")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8:00" )
	private Date operateTime;
	//操作人
	@NotNull(message = "操作人不能为空")
	private Integer operateId;
	//操作消息
	private String operateMsg;
	private Integer stateId;
	@Transient
	private CapitalSecurityGivebackState capitalSecurityGivebackState;
	@Transient
	private BaseUser baseUser;
	@Transient
	private BaseUser operateUser;

	public CapitalSecurityGivebackRecord(){

	}

	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setUserId(Integer userId){
		this.userId=userId;
	}

	public Integer getUserId(){
		return this.userId;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}
	public void setOperateTime(Date operateTime){
		this.operateTime=operateTime;
	}

	public Date getOperateTime(){
		return this.operateTime;
	}
	public void setOperateId(Integer operateId){
		this.operateId=operateId;
	}

	public Integer getOperateId(){
		return this.operateId;
	}
	public void setOperateMsg(String operateMsg){
		this.operateMsg=operateMsg;
	}

	public String getOperateMsg(){
		return this.operateMsg;
	}

	public CapitalSecurityGivebackState getCapitalSecurityGivebackState() {
		return capitalSecurityGivebackState;
	}

	public void setCapitalSecurityGivebackState(CapitalSecurityGivebackState capitalSecurityGivebackState) {
		this.capitalSecurityGivebackState = capitalSecurityGivebackState;
	}

	public BaseUser getBaseUser() {
		return baseUser;
	}

	public void setBaseUser(BaseUser baseUser) {
		this.baseUser = baseUser;
	}

	public BaseUser getOperateUser() {
		return operateUser;
	}

	public void setOperateUser(BaseUser operateUser) {
		this.operateUser = operateUser;
	}

	public Integer getStateId() {
		return stateId;
	}

	public void setStateId(Integer stateId) {
		this.stateId = stateId;
	}

	@Override
	public String toString() {
		return "CapitalSecurityGivebackRecord{" +
				"id=" + id +
				", userId=" + userId +
				", createTime=" + createTime +
				", operateTime=" + operateTime +
				", operateId=" + operateId +
				", operateMsg='" + operateMsg + '\'' +
				", stateId=" + stateId +
				", capitalSecurityGivebackState=" + capitalSecurityGivebackState +
				", baseUser=" + baseUser +
				", operateUser=" + operateUser +
				'}';
	}
}
